/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-08-08     73554       the first version
 */
#ifndef APPLICATIONS_USER_CONFIG_H_
#define APPLICATIONS_USER_CONFIG_H_


#include <rtthread.h>

#include <rtdevice.h>
#include <drv_common.h>

#include <sys/types.h>

#include <stdio.h>
#include <stdlib.h>
//#include <cstdlib.h>
#include <stdint.h>
#include <stddef.h>

#include "at24cxx.h"
/*********************************************************************************/

/*********************************************************************************/
#define MD_M_CTRL_Pin                GET_PIN(C, 15)
#define MD_S_CTRL_Pin                GET_PIN(C, 12)

/*********************************************************************************/

/*********************************************************************************/
//AT24Cxx
extern at24cxx_device_t g_eeprom_s;
extern rt_err_t G_AT24CxxInit_e(void);


//storage
extern int G_InitStorageThread_i32();


//user_modbus
extern int G_InitUserModbusMasterThread_i32();
extern int G_InitUserModbusSlaveThread_i32();


/*********************************************************************************/

#endif /* APPLICATIONS_USER_CONFIG_H_ */
